package com.drivers.homepage.mapper;

import com.drivers.homepage.domain.OrderCost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Mapper
public interface OrderCostMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderCost record);

    int insertSelective(OrderCost record);

    OrderCost selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderCost record);

    int updateByPrimaryKey(OrderCost record);

    OrderCost selectByOrderId(@Param("orderId") String  i);

    OrderCost selectMoney(String  i);

    void updateMoney(OrderCost orderCost1);



    void updateorderTime(String orderId, LocalDateTime now);

    void updateDestinationTime(String orderId, LocalDateTime now);

    void updateArriveTime(String orderId, LocalDateTime now);

    void UpdateReceiveTime(String orderId, LocalDateTime now);

    void updatePassengerTotal(BigDecimal getmoney, String orderId);


    void update(OrderCost orderCost);
}
